package com.itshizhan.itjidancideveloper.configs;

import com.itshizhan.itjidancideveloper.utils.SfIdWorker;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

@Configuration
public class BeanConfig {
	@Bean
	public SfIdWorker sfIdWorker() {
		return new SfIdWorker(0,0);
	}


	@Bean
	public BCryptPasswordEncoder createPasswordEncoder() {
		return new BCryptPasswordEncoder();
	}
}
